package com.xnyzc.lhy.mis.entity.driver.wallet;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
*
* 司机钱包表
*
* @author cuixiaojian
* @since 2019-10-22
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OaDWallet对象", description="司机钱包表")
public class OaDWallet implements Serializable {

private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "钱包ID")
    @TableId(value="wallet_id", type = IdType.INPUT)
    private Long walletId;

    @ApiModelProperty(value = "用户ID")
    private Long driverId;

    @ApiModelProperty(value = "部门ID")
    private Long officeId;

    @ApiModelProperty(value = "钱包余额")
    private BigDecimal walletBalance;

    @ApiModelProperty(value = "可提现金额")
    private BigDecimal cashBalance;

    @ApiModelProperty(value = "提现中金额")
    private BigDecimal cashingBalance;

    @ApiModelProperty(value = "历史提现总金额")
    private BigDecimal cashTotal;

    @ApiModelProperty(value = "冻结余额")
    private BigDecimal frozenBalance;

    @ApiModelProperty(value = "解冻时间")
    private Date thawingTime;

    @ApiModelProperty(value = "部门公务余额(无用)")
    private BigDecimal deptOfficialBalance;

    @ApiModelProperty(value = "钱包状态(0:可用,1:不可用)")
    private Integer logonStatus;

    @ApiModelProperty(value = "用户来源")
    private String tag;

    @ApiModelProperty(value = "扩展字段1")
    private String expand1;

    @ApiModelProperty(value = "扩展字段2")
    private String expand2;

    @ApiModelProperty(value = "扩展字段3")
    private String expand3;

    @ApiModelProperty(value = "版本号")
    @Version
    private Long version;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "总单量")
    private Integer alwaysSingular;

    @ApiModelProperty(value = "总流水")
    private BigDecimal totalWater;

    @ApiModelProperty(value = "提现密码")
    private String withdrawalPassword;


    public static final String WALLET_ID = "wallet_id";

    public static final String DRIVER_ID = "driver_id";

    public static final String OFFICE_ID = "office_id";

    public static final String WALLET_BALANCE = "wallet_balance";

    public static final String CASH_BALANCE = "cash_balance";

    public static final String CASHING_BALANCE = "cashing_balance";

    public static final String CASH_TOTAL = "cash_total";

    public static final String FROZEN_BALANCE = "frozen_balance";

    public static final String THAWING_TIME = "thawing_time";

    public static final String DEPT_OFFICIAL_BALANCE = "dept_official_balance";

    public static final String LOGON_STATUS = "logon_status";

    public static final String TAG = "tag";

    public static final String EXPAND1 = "expand1";

    public static final String EXPAND2 = "expand2";

    public static final String EXPAND3 = "expand3";

    public static final String VERSION = "version";

    public static final String DELETED = "deleted";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER = "update_user";

    public static final String UPDATE_TIME = "update_time";

    public static final String ALWAYS_SINGULAR = "always_singular";

    public static final String TOTAL_WATER = "total_water";

    public static final String WITHDRAWAL_PASSWORD = "withdrawal_password";

}
